package com.lagou.service.impl;

import com.lagou.service.CHelloService;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

@Service
public class CHelloServiceImpl implements CHelloService {

    @Override
    public void printIpC() {
        String client_ip = RpcContext.getContext().getAttachment("client_ip");
        System.out.println("C ip>>>>>>>" + client_ip);
    }
}
